package com.alennus.blog.repository;

import com.alennus.blog.domain.RoleMenu;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by pactera on 2018/6/11.
 */
public interface RoleMenuRepository extends MongoRepository<RoleMenu,String> {


    void deleteByRoleId(String roleId);

    List<RoleMenu> findByRoleId(String roleId);
}
